home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1790 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: fido.asd.sgi.com!mnm
  2. From: mnm@sgi.com (Michey Mehta)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: SGI C++ volatile keyword and/or #pragma pack
  5. Date: 13 Jan 1996 00:06:15 GMT
  6. Organization: Silicon Graphics, Inc.
  7. Message-ID: <4d6t1n$186@fido.asd.sgi.com>
  8. References: <4d6ra1$cvf@dialup.ese.lmsc.lockheed.com>
  9. Reply-To: mnm@engr.sgi.com
  10. NNTP-Posting-Host: oldmagic.engr.sgi.com
  11. X-Newsreader: TIN [version 1.2 PL0]
  12.  
  13. Melnick Andy (melnick@lmsc.lockheed.com) wrote:
  14. : We've encountered a difficulty (problem?) with the SGI Irix 5.3 C++ compiler
  15. : (version 4.0?) in which the compiler apparently forces word/longword alignment
  16. : within structures for word/longwords (2/4 byte variables).  We've tried
  17. : specifying the "#pragma pack(n)" directive -- it works with the C compiler, but
  18. : the C++ (CC) compiler fails with "warning(3247): unrecognized #pragma".  We've
  19. : also tried specifying the "volatile" keyword in association with the structure,
  20. : but apparently the compiler is ignoring our attempt at guidance.  Anybody know
  21. : if there's a way to force the compiler to forego padding?
  22.  
  23. We don't yet support pragma pack in Irix 5.3 C++. Watch for patch 894, which
  24. will support this: we will release this towards the end of January.
  25.  
  26. --
  27. Michey Mehta
  28. Silicon Graphics
  29.